<%-- 
    Document   : login
    Created on : 16-feb-2012, 10.02.16
    Author     : ciro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script src="JS/style.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="style.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login</title>
    </head>
    <body>
        <%@include file="header.jsp" %>
        <div id="content">
            <% if (request.getParameter("fail") != null && request.getParameter("fail").equals("true")) {%>
            <fieldset>
                <legend>
                        Errore:
                    </legend>
                <p>
                    Autenticazione fallita! Username e/o password errati.
                </p>
            </fieldset>
            <% }%>
            <fieldset>
                <legend>
                        Login:
                    </legend>
                <form action="/EsameSSCSWeb-war/Servlet?action=login" method="post">

                    
                    <table border="0">
                        <tr>
                            <td>
                                <input type="radio" name="scelta" value="cliente" onclick="change(this)" checked>Cliente</input>
                                <input type="radio" name="scelta" value="locale" onclick="change(this)">Locale</input>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="user"/>
                            </td>
                            <td>
                                <input type="password" name="password"/>
                            </td>
                        </tr>
                    </table>
                    <p>
                        <button id="submit" type="submit">Login <img src="img/ok.gif" alt="ok"/></button>
                        <button type="reset">Cancella <img src="img/cancel.gif" alt="cancel"/></button>
                    </p>
                </form>
            </fieldset>
        </div>
    </body>
</html>
